function isSame(str1,str2){
	if (str1.length != str2.length){
		return false
	}
	let temp1 = Array.from(str1).sort().join("")
	let temp2 = Array.from(str2).sort().join("")
	for (let index = 0;index<temp1.length;index++){
		if (temp1.charAt(index)!=temp2.charAt(index)){
			return false
		}
	}
	return true
}


console.info(isSame("1","3"))
console.info(isSame("1","12"))
console.info(isSame("21","12"))

